package main.java.indi.zyj.sword;

public class TrainingPlan1 {

    public int[] trainingPlan(int[] nums) {

        int a = 0;

        for (int i = 0; i < nums.length; i++){
            if (nums[i] % 2 == 1){
                int temp = nums[i];
                nums[i] = nums[a];
                nums[a] = temp;
                a++;
            }
        }

        return nums;
    }

}
